
import '../obj/home_person_summary_info.dart';

class ResHomePersonSummary {
    HomePersonSummaryInfo data;
    int code;
    String errMsg;
    int length;
    String msg;

    ResHomePersonSummary({this.data, this.code, this.errMsg, this.length, this.msg});

    factory ResHomePersonSummary.fromJson(Map<String, dynamic> json) {
        return ResHomePersonSummary(
            data: json['data'] != null ? HomePersonSummaryInfo.fromJson(json['data']) : null,
            code: json['code'], 
            errMsg: json['errMsg'], 
            length: json['length'], 
            msg: json['msg'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        data['errMsg'] = this.errMsg;
        data['length'] = this.length;
        data['msg'] = this.msg;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}